// import http from "../$alova";
import http, { RequestHttp } from "../$axios";
import { Base, Get, Post } from "@/api/helper/decorator";
import type { UserApiType, ResultData, RES } from "../interface/";

const immediate = {
  immediate: false,
  force: true,
};

interface A {
  a: string;
}

// ! 用户模块
// @Base("https://api.apiopen.top/api")
class UserApi extends RequestHttp {
  @Post("/geeker/user/list")
  getUestList(params: any) {
    return this.send.call(this, "getUestList", params);
  }

  @Get('/geeker/user/department')
  getTree(params: any) {
    return this.send.call(this, "getTree", params);
  }

  @Get("https://api.apiopen.top/api/getHaoKanVideo")
  getList(params: { page: number; size: number }) {
    return this.send.call(this, "getList", params);
  }
}
export const userApi = new UserApi();
